#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	int n = 0;
	int i = 0;
	scanf("%d", &n);
	for (i = 1; i <= n; i++)
	{
		int j = i * i;
		while (j)
		{
			printf("%2d\t", j);
			j -= i;
		}
		printf("\n");
	}
	return 0;
}